<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 300px;
            height: 200px;
            background: palegreen;
            border: 5px dashed red;
        }
    </style>
</head>
<body>
    <div class="box" style="width: 300px;height: 300px;background: pink;color: green;">姜新华要跳舞</div>
    <!-- <div class="box1">姜新华要跳舞</div> -->

    <script>
        const box = document.querySelector('.box')
        box.style.width = '500px'
        box.style.fontSize = '100px'

        // const box1 = document.querySelector('.box1')
        box.className = 'box'
        console.log(box)
        
    </script>
</body>
</html>